package com.ruoyi.ring.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;

import java.util.Date;
import java.util.List;

@Slf4j
@Data
public class TagTypeGroupVO {
    private Integer tagType;
    private List<TagInfoVO> tagInfos;

    public TagTypeGroupVO(Integer tagType, List<TagInfoVO> tagInfos) {
        this.tagType = tagType;
        this.tagInfos = tagInfos;
    }
    @Data
    public static class TagInfoVO {
        private Long id;
        private String tagCode;
        private String tagName;
        private Long userId;
        @JsonFormat(pattern = "yyyy-MM-dd")
        private Date dailyValue;

        public TagInfoVO(Long id, String tagCode, String tagName, Long userId, Date dailyValue) {
            this.id = id;
            this.tagCode = tagCode;
            this.tagName = tagName;
            this.userId = userId;
            this.dailyValue = dailyValue;
        }
    }

}